﻿<!-- "script/apps/Aries/Creator/Game/Tasks/TeachingQuest/TeachingQuestTitle.html" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <pe:mcml>
        <script refresh="false" type="text/npl" src="TeachingQuestTitle.lua">
            <![CDATA[
            TeachingQuestTitle = NPL.load("(gl)script/apps/Aries/Creator/Game/Tasks/TeachingQuest/TeachingQuestTitle.lua");
            TeachingQuestTitle.OnInit();
            --info = Page:GetRequestParam("info") or "main"
            --ticket = Page:GetRequestParam("ticket") or "receive"
            ]]>
        </script>
        <!--
        <pe:if condition='<%=(info=="main")%>'>
            <aries:window mode="no_title" style="width:488px;height:120px">
                <div style="height:25px;color:#ffffff;">
                    <div style="margin-top:-20px;width:420px;height:24px;text-align:center;color:#ffffff;font-size:14px;font-weight:bold">
                        <%=L"知识岛" %>
                    </div>
                    <div style="margin-top:0px;width:420px;height:20px;text-align:center;color:#ffffff;font-size:12px">
                        <%=L"每日可使用一张入场券完成一次观看课程视频的任务并获得知识豆奖励" %>
                    </div>
                    <input type="button" style="spacing:4px;width:40px;height:30px;margin-left:426px;margin-top:-34px;" value='<%=L"退出" %>' class="mc_light_grey_button_with_fillet" onclick="TeachingQuestTitle.OnClose" />
                </div>
                <div style="margin:5px;"><hr /></div>
                <div style="margin-top:6px;width:488px;height:50px;color:#ffffff;">
                    <div style="margin-left:10px;">
                        <%=L"知识豆："%>
                        <input type="button" name="reward" value='<%=TeachingQuestTitle.GetTotalPoints()%>' style="color: #ffffff; background:; margin-top: 0px;text-align:left;max-width:60px;" />
                    </div>
                    <pe:if condition='<%=(ticket=="receive")%>'>
                        <div style="margin-top:-23px;margin-left:310px">
                            <%=L"入场券："%>
                            <input type="button" name="ticket" value='<%=TeachingQuestTitle.GetTotalTickets()%>' style="color: #ffffff; background:; margin-top: 0px;text-align:left;max-width:60px;" />
                            <input type="button" style="width:80px;height:26px;margin-top:-2px;margin-left:5px;color:#ffffff;" value='<%=L"领取入场券" %>' class="mc_blue_button_with_fillet" onclick="TeachingQuestTitle.ReceiveTicket" />
                        </div>
                    </pe:if>
                    <pe:if condition='<%=(ticket=="non_today")%>'>
                        <div style="margin-top:-23px;margin-left:310px">
                            <%=L"入场券："%>
                            <input type="button" name="ticket" value='<%=TeachingQuestTitle.GetTotalTickets()%>' style="color: #ffffff; background:; margin-top: 0px;text-align:left;max-width:60px;" />
                            <input type="button" enabled="false" style="width:80px;height:26px;margin-top:-2px;margin-left:5px;color:#ffffff;" value='<%=L"今日已领完" %>' class="mc_blue_button_with_fillet" onclick="" />
                        </div>
                    </pe:if>
                    <pe:if condition='<%=(ticket=="non_week")%>'>
                        <div style="margin-top:-23px;margin-left:310px">
                            <%=L"入场券："%>
                            <input type="button" name="ticket" value='<%=TeachingQuestTitle.GetTotalTickets()%>' style="color: #ffffff; background:; margin-top: 0px;text-align:left;max-width:60px;" />
                            <input type="button" enabled="false" style="width:80px;height:26px;margin-top:-2px;margin-left:5px;color:#ffffff;" value='<%=L"本周已领完" %>' class="mc_blue_button_with_fillet" onclick="" />
                        </div>
                    </pe:if>
                </div>
                <div style="margin-top:-23px;margin-left:214px;width:60px;height:20px;">
                    <pe:if condition='<%=TeachingQuestTitle.IsPanelVisible%>'>
                        <div tooltip='<%=L"点击隐藏面板"%>' onclick="TeachingQuestTitle.OnHidePanel" style="margin-left:14px;width:32px;height:16px;background:url(Texture/3DMapSystem/common/uparrow.png)">
                            <div tooltip='<%=L"点击隐藏面板"%>' onclick="TeachingQuestTitle.OnHidePanel" style="margin-left:-14px;margin-top:-2px;width:60px;height:20px;background:url(Texture/Aries/Creator/keepwork/LearningDailyCheck/gray_bg_32bits.png:6 6 6 6);"></div>
                        </div>
                    </pe:if>
                    <pe:if condition='<%=not TeachingQuestTitle.IsPanelVisible%>'>
                        <div tooltip='<%=L"点击显示面板"%>' onclick="TeachingQuestTitle.OnShowPanel" style="margin-left:14px;width:32px;height:16px;background:url(Texture/3DMapSystem/common/downarrow.png)">
                            <div tooltip='<%=L"点击显示面板"%>' onclick="TeachingQuestTitle.OnShowPanel" style="margin-left:-14px;margin-top:-2px;width:60px;height:20px;background:url(Texture/Aries/Creator/keepwork/LearningDailyCheck/gray_bg_32bits.png:6 6 6 6);"></div>
                        </div>
                    </pe:if>
                </div>
            </aries:window>
        </pe:if>
        -->
        <!--
        <pe:if condition='<%=(info=="task")%>'>
            <aries:window mode="no_title" style="width:488px;height:110px">
                <div style="height:25px;color:#ffffff;">
                    <div style="margin-left:48px;margin-top:-20px;width:420px;height:24px;text-align:center;color:#ffffff;font-size:14px;font-weight:bold">
                        <%= TeachingQuestTitle.GetTaskTitle() %>
                    </div>
                    <div style="margin-left:54px;margin-top:0px;width:420px;height:20px;text-align:center;color:#ffffff;font-size:12px">
                        <%= TeachingQuestTitle.GetTaskInfo() %>
                    </div>
                    <pe:if condition='<%=(not TeachingQuestTitle.IsTaskInProcess())%>'>
                        <input type="button" style="spacing:4px;width:40px;height:30px;margin-left:10px;margin-top:-34px;" value='<%=L"返回" %>' class="mc_light_grey_button_with_fillet" onclick="TeachingQuestTitle.OnReturn" />
                    </pe:if>
                </div>
                <div style="margin:5px;"><hr /></div>
                <div style="margin-top:6px;width:488px;height:50px;color:#ffffff;">
                    <div style="margin-left:10px;">
                        <%=L"知识豆："%>
                        <input type="button" name="totalpoints" value='<%=TeachingQuestTitle.GetTotalPoints()%>' style="color: #ffffff; background:; margin-top: 0px;text-align:left;max-width:60px;" />
                    </div>
                    <pe:if condition='<%=(not TeachingQuestTitle.IsTaskFinished())%>'>
                        <input type="button" style="width:80px;height:26px;margin-top:-24px;margin-left:386px;color:#ffffff;" value='<%=L"开始任务" %>' class="mc_blue_button_with_fillet" onclick="TeachingQuestTitle.StartTask" />
                    </pe:if>
                    <pe:if condition='<%=(TeachingQuestTitle.IsTaskInProcess())%>'>
                        <div style="margin-top:-23px;margin-left:284px">
                            <%=L"任务进行中"%>
                            <input type="button" style="width:100px;height:26px;margin-top:-2px;margin-left:15px;color:#ffffff;" value='<%=L"确认完成" %>' class="mc_blue_button_with_fillet" onclick="TeachingQuestTitle.FinishedTask" />
                        </div>
                    </pe:if>
                    <pe:if condition='<%=(TeachingQuestTitle.IsTaskFinished() and not TeachingQuestTitle.IsTaskInProcess())%>'>
                        <div style="margin-top:-23px;margin-left:284px">
                            <%=L"任务已完成"%>
                            <input type="button" style="width:100px;height:26px;margin-top:-2px;margin-left:15px;color:#ffffff;" value='<%=L"查看任务内容" %>' class="mc_blue_button_with_fillet" onclick="TeachingQuestTitle.StartTask" />
                        </div>
                    </pe:if>
                </div>
            </aries:window>
        </pe:if>
        -->
        <aries:window mode="no_title" style="width:488px;height:120px">
            <div style="height:25px;color:#ffffff;">
                <div style="margin-left:48px;margin-top:-20px;width:420px;height:24px;text-align:center;color:#ffffff;font-size:14px;font-weight:bold">
                    <%= TeachingQuestTitle.GetTaskTitle() %>
                </div>
                <div style="margin-left:54px;margin-top:0px;width:420px;height:20px;text-align:center;color:#ffffff;font-size:12px">
                    <%= TeachingQuestTitle.GetTaskInfo() %>
                </div>
                <pe:if condition='<%=(not TeachingQuestTitle.IsTaskInProcess())%>'>
                    <input type="button" style="spacing:4px;width:40px;height:30px;margin-left:10px;margin-top:-34px;" value='<%=L"返回" %>' class="mc_light_grey_button_with_fillet" onclick="TeachingQuestTitle.OnReturn" />
                </pe:if>
            </div>
            <div style="margin:5px;"><hr /></div>
            <div style="margin-top:6px;width:488px;height:50px;color:#ffffff;">
                <div style="margin-left:10px;">
                    <%=L"知识豆："%>
                    <input type="button" name="totalpoints" value='<%=TeachingQuestTitle.GetTotalPoints()%>' style="color: #ffffff; background:; margin-top: 0px;text-align:left;max-width:60px;" />
                </div>
                <pe:if condition='<%=(not TeachingQuestTitle.IsTaskFinished())%>'>
                    <input type="button" style="width:80px;height:26px;margin-top:-24px;margin-left:386px;color:#ffffff;" value='<%=L"开始任务" %>' class="mc_blue_button_with_fillet" onclick="TeachingQuestTitle.StartTask" />
                </pe:if>
                <pe:if condition='<%=(TeachingQuestTitle.IsTaskInProcess())%>'>
                    <div style="margin-top:-23px;margin-left:284px">
                        <%=L"任务进行中"%>
                        <input type="button" style="width:100px;height:26px;margin-top:-2px;margin-left:15px;color:#ffffff;" value='<%=L"确认完成" %>' class="mc_blue_button_with_fillet" onclick="TeachingQuestTitle.FinishedTask" />
                    </div>
                </pe:if>
                <pe:if condition='<%=(TeachingQuestTitle.IsTaskFinished() and not TeachingQuestTitle.IsTaskInProcess())%>'>
                    <div style="margin-top:-23px;margin-left:284px">
                        <%=L"任务已完成"%>
                        <input type="button" style="width:100px;height:26px;margin-top:-2px;margin-left:15px;color:#ffffff;" value='<%=L"查看任务内容" %>' class="mc_blue_button_with_fillet" onclick="TeachingQuestTitle.StartTask" />
                    </div>
                </pe:if>
            </div>
            <div style="margin-top:-23px;margin-left:214px;width:60px;height:20px;">
                <pe:if condition='<%=TeachingQuestTitle.IsPanelVisible%>'>
                    <div tooltip='<%=L"点击隐藏面板"%>' onclick="TeachingQuestTitle.OnHidePanel" style="margin-left:14px;width:32px;height:16px;background:url(Texture/3DMapSystem/common/uparrow.png)">
                        <div tooltip='<%=L"点击隐藏面板"%>' onclick="TeachingQuestTitle.OnHidePanel" style="margin-left:-14px;margin-top:-2px;width:60px;height:20px;background:url(Texture/Aries/Creator/keepwork/LearningDailyCheck/gray_bg_32bits.png:6 6 6 6);"></div>
                    </div>
                </pe:if>
                <pe:if condition='<%=not TeachingQuestTitle.IsPanelVisible%>'>
                    <div tooltip='<%=L"点击显示面板"%>' onclick="TeachingQuestTitle.OnShowPanel" style="margin-left:14px;width:32px;height:16px;background:url(Texture/3DMapSystem/common/downarrow.png)">
                        <div tooltip='<%=L"点击显示面板"%>' onclick="TeachingQuestTitle.OnShowPanel" style="margin-left:-14px;margin-top:-2px;width:60px;height:20px;background:url(Texture/Aries/Creator/keepwork/LearningDailyCheck/gray_bg_32bits.png:6 6 6 6);"></div>
                    </div>
                </pe:if>
            </div>
        </aries:window>
    </pe:mcml>
</body>
</html>
